Transforming word vectors
In the previous week, I showed you how we can plot word vectors. Now, you will see how you can take a word vector and learn a mapping that will allow you to translate words by learning a "transformation matrix". Here is a visualization:

Note that the word "chat" in french means cat. You can learn that by taking the vector corresponding to "cat" in english, multiplying it by a matrix that you learn and then you can use cosine similarity between the output and all the french vectors. You should see that the closest result is the vector which corresponds to "chat".
Here is a visualization of that showing you the aligned vectors:

Note that corresponds to the matrix of english word vectors and corresponds to the matrix of french word vectors. is the mapping matrix.
Steps required to learn :
Initialize R
For loop
Here is an example to show you how the frobenius norm works.
In summary you are making use of the following:
